home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / cool.lha / ice / pisces / config / project.imk < prev    next >
Encoding:
Text File  |  1991-09-04  |  9.4 KB  |  276 lines

  1. /*****************************************************************************
  2. //
  3. // Copyright (C) 1991 Texas Instruments Incorporated.
  4. //
  5. // Permission is granted to any individual or institution to use, copy, modify,
  6. // and distribute this software, provided that this complete copyright and
  7. // permission notice is maintained, intact, in all copies and supporting
  8. // documentation.
  9. //
  10. // Texas Instruments Incorporated provides this software "as is" without
  11. // express or implied warranty.
  12. //
  13.  *****************************************************************************
  14.  *
  15.  *    Author: Martin Neath
  16.  *    Filename: project.imk
  17.  *    $Revision: $ $Date: $
  18.  *    Module: build/config
  19.  *    Purpose: PISCES project template file
  20.  *      Abstract:
  21.  *        - The "project.imk" file contains default values for project
  22.  *          commands, variables, and pathnames. 
  23.  *
  24.  *        - Do *NOT* change values in this file -- change them in the
  25.  *          site and/or system configuration files
  26.  *
  27.  *      Related Files: site.def, imake.imk, imake.rul
  28.  *
  29.  *    Creation Date: 05/10/90
  30.  *    Changed by\Date\Reason:
  31.  *
  32.  *****************************************************************************/
  33.  
  34. /*###########################################################################*/
  35. /*# PISCES System defaults                                                  #*/
  36. /*###########################################################################*/
  37.  
  38. #ifndef LibDir
  39. #define LibDir $(TOP)$(PATHSEP)lib$(PATHSEP)$(MACHINE)
  40. #endif
  41. #ifndef ProjectLibraryName
  42. #define ProjectLibraryName ICE
  43. #endif
  44. #ifndef FastLibraryName
  45. #define FastLibraryName fast##ProjectLibraryName
  46. #endif
  47. #ifndef TestLibraryName
  48. #define TestLibraryName test##ProjectLibraryName
  49. #endif
  50. #ifndef ImakefileName
  51. #define ImakefileName Imakefile
  52. #endif
  53. #ifndef MiscFileList
  54. #define MiscFileList
  55. #endif
  56. #ifndef BinDir
  57. #define BinDir $(TOP)$(PATHSEP)bin
  58. #endif
  59. #ifndef IncDir
  60. #define IncDir $(TOP)$(PATHSEP)include
  61. #endif
  62. #ifndef ImakeDir
  63. #define ImakeDir $(TOP)$(PATHSEP)pisces$(PATHSEP)imake
  64. #endif
  65. #ifndef DependDir
  66. #define DependDir $(TOP)$(PATHSEP)pisces$(PATHSEP)mkdepend
  67. #endif
  68. #ifndef ConfigDir
  69. #define ConfigDir $(TOP)$(PATHSEP)pisces$(PATHSEP)config
  70. #endif
  71. #ifndef FlexDir
  72. #define FlexDir $(TOP)$(PATHSEP)pisces$(PATHSEP)flex
  73. #endif
  74. #ifndef ByaccDir
  75. #define ByaccDir $(TOP)$(PATHSEP)pisces$(PATHSEP)byacc
  76. #endif
  77.  
  78. #ifndef StandardCIncludes
  79. #define StandardCIncludes $(IFLAG)$(CINCDIR)
  80. #endif
  81. #ifndef StandardCDefines
  82. #define StandardCDefines
  83. #endif
  84. #ifndef StandardCLibraries
  85. #define StandardCLibraries
  86. #endif
  87. #ifndef StandardCLibraryDirs
  88. #define StandardCLibraryDirs
  89. #endif
  90.  
  91. #ifndef StandardCPIncludes
  92. #define StandardCPIncludes $(IFLAG)$(CPLUSINCDIR)
  93. #endif
  94. #ifndef StandardCPDefines
  95. #define StandardCPDefines
  96. #endif
  97. #ifndef StandardCPLibraries
  98. #define StandardCPLibraries
  99. #endif
  100. #ifndef StandardCPLibraryDirs
  101. #define StandardCPLibraryDirs
  102. #endif
  103.  
  104. #ifndef ProjectCIncludes
  105. #define ProjectCIncludes
  106. #endif
  107. #ifndef ProjectCDefines
  108. #define ProjectCDefines $(DFLAG)$(MACHINE)
  109. #endif
  110. #ifndef ProjectCLibraries
  111. #define ProjectCLibraries
  112. #endif
  113. #ifndef ProjectCLibraryDirs
  114. #define ProjectCLibraryDirs
  115. #endif
  116.  
  117. #ifndef ProjectCPIncludes
  118. #define ProjectCPIncludes $(IFLAG)IncDir
  119. #endif
  120. #ifndef ProjectCPDefines
  121. #define ProjectCPDefines $(DFLAG)$(MACHINE) 
  122. #endif
  123. #ifndef ProjectCPLibraries
  124. #define ProjectCPLibraries $(LIBSFLAG)$(LIBRARY)
  125. #endif
  126. #ifndef ProjectCPLibraryDirs
  127. #define ProjectCPLibraryDirs $(LDIRFLAG)$(LIBDIR)
  128. #endif
  129.  
  130. #ifndef LocalCIncludes
  131. #define LocalCIncludes
  132. #endif
  133. #ifndef LocalCDefines
  134. #define LocalCDefines
  135. #endif
  136. #ifndef LocalCLibraries
  137. #define LocalCLibraries
  138. #endif
  139. #ifndef LocalCLibraryDirs
  140. #define LocalCLibraryDirs
  141. #endif
  142.  
  143. #ifndef LocalCPIncludes
  144. #define LocalCPIncludes
  145. #endif
  146. #ifndef LocalCPDefines
  147. #define LocalCPDefines
  148. #endif
  149. #ifndef LocalCPLibraries
  150. #define LocalCPLibraries
  151. #endif
  152. #ifndef LocalCPLibraryDirs
  153. #define LocalCPLibraryDirs
  154. #endif
  155.  
  156. #ifndef COptimizeFlag
  157. #define COptimizeFlag -O
  158. #endif
  159. #ifndef CPlusOptimizeFlag
  160. #define CPlusOptimizeFlag -O
  161. #endif
  162. #ifndef DefaultCFlags
  163. #define DefaultCFlags 
  164. #endif
  165. #ifndef DefaultCPlusFlags
  166. #define DefaultCPlusFlags +w +i -Dvolatile=
  167. #endif
  168. #ifndef CFlagsDebug
  169. #define CFlagsDebug DefaultCFlags
  170. #endif
  171. #ifndef CPlusFlagsDebug
  172. #define CPlusFlagsDebug $(DFLAG)RK_DEBUG DefaultCPlusFlags
  173. #endif
  174. #ifndef CLinkerOptions
  175. #define CLinkerOptions
  176. #endif
  177. #ifndef CPlusLinkerOptions
  178. #define CPlusLinkerOptions
  179. #endif
  180. #ifndef RCSDirName
  181. #define RCSDirName() PrefixDirName(RCS)
  182. #endif
  183. #ifndef TestDirName
  184. #define TestDirName test
  185. #endif
  186. #ifndef VersionDirName
  187. #define VersionDirName version.
  188. #endif
  189. #ifndef REV
  190. #define REV 1
  191. #endif
  192. #ifndef YaccLexDefines
  193. #define YaccLexDefines
  194. #endif
  195. #ifndef MiscCFlags 
  196. #define MiscCFlags
  197. #endif
  198.  
  199. /*###########################################################################*/
  200. /*# PISCES System make variables                                            #*/
  201. /*#   - many defined in system-specific rules file                          #*/
  202. /*###########################################################################*/
  203.  
  204. TOP                   = TOPDIR              /*                            */
  205. MACHINE               = MACH                /*                            */
  206. INCDIR                = IncDir              /*                            */
  207. LIBDIR                = LibDir              /*                            */
  208. LIBRARY               = ProjectLibraryName  /*                            */
  209. FASTLIBRARY           = FastLibraryName     /*                            */
  210. TESTLIBRARY           = TestLibraryName     /*                            */
  211. IMAKEFILE             = ImakefileName       /*                            */
  212. MISCFILES          = MiscFileList        /*                            */
  213. BINDIR                = BinDir              /*                            */
  214. RCSDIR                = RCSDirName()        /*                            */
  215. TESTDIR               = TestDirName         /*                            */
  216. VERSION               = VersionDirName      /*                            */
  217. CURVER                = REV                 /*                            */
  218. NEXT                  = @+REV               /*                            */
  219. PREV                  = @-REV               /*                            */
  220. IMAKESRC              = ImakeDir            /*                            */
  221. DEPENDSRC             = DependDir           /*                            */
  222. CONFIG                = ConfigDir           /*                            */
  223. FLEXSRC               = FlexDir             /*                            */
  224. BYACCSRC              = ByaccDir            /*                            */   
  225. YACCLEX               = YaccLexDefines      /*                            */
  226.  
  227. STD_C_INCS            = StandardCIncludes   /*                            */
  228. STD_C_DEFS            = StandardCDefines    /*                            */
  229. STD_C_LIBS            = StandardCLibraries  /*                            */
  230. STD_C_LIBDIRS         = StandardCLibraryDirs /*                            */
  231.  
  232. STD_CPLUS_INCS        = StandardCPIncludes  /*                            */
  233. STD_CPLUS_DEFS        = StandardCPDefines   /*                            */
  234. STD_CPLUS_LIBS        = StandardCPLibraries /*                            */
  235. STD_CPLUS_LIBDIRS     = StandardCPLibraryDirs /*                            */
  236.  
  237. PROJECT_C_INCS        = ProjectCIncludes    /*                            */
  238. PROJECT_C_DEFS        = ProjectCDefines     /*                            */
  239. PROJECT_C_LIBS        = ProjectCLibraries   /*                            */
  240. PROJECT_C_LIBDIRS     = ProjectCLibraryDirs /*                            */
  241.  
  242. PROJECT_CPLUS_INCS    = ProjectCPIncludes   /*                            */
  243. PROJECT_CPLUS_DEFS    = ProjectCPDefines    /*                            */
  244. PROJECT_CPLUS_LIBS    = ProjectCPLibraries  /*                            */
  245. PROJECT_CPLUS_LIBDIRS = ProjectCPLibraryDirs /*                            */
  246.  
  247. LOCAL_C_INCS          = LocalCIncludes      /*                            */
  248. LOCAL_C_DEFS          = LocalCDefines       /*                            */
  249. LOCAL_C_LIBS          = LocalCLibraries     /*                            */
  250. LOCAL_C_LIBDIRS       = LocalCLibraryDirs   /*                            */
  251.  
  252. LOCAL_CPLUS_INCS      = LocalCPIncludes     /*                            */
  253. LOCAL_CPLUS_DEFS      = LocalCPDefines      /*                            */
  254. LOCAL_CPLUS_LIBS      = LocalCPLibraries    /*                            */
  255. LOCAL_CPLUS_LIBDIRS   = LocalCPLibraryDirs  /*                            */
  256.  
  257. ALLCDEFS              = $(LOCAL_C_DEFS) $(LOCAL_C_INCS) $(PROJECT_C_DEFS) $(PROJECT_C_INCS) $(STD_C_DEFS) $(STD_C_INCS)
  258. ALLCLIBS              = $(LOCAL_C_LIBS) $(PROJECT_C_LIBS) $(STD_C_LIBS)
  259. ALLCLIBDIRS           = $(LOCAL_C_LIBDIRS) $(PROJECT_C_LIBDIRS) $(STD_C_LIBDIRS)
  260.  
  261. ALLCPLUSDEFS          = $(LOCAL_CPLUS_DEFS) $(LOCAL_CPLUS_INCS) $(PROJECT_CPLUS_DEFS) $(PROJECT_CPLUS_INCS) $(STD_CPLUS_DEFS) $(STD_CPLUS_INCS)
  262. ALLCPLUSLIBS          = $(LOCAL_CPLUS_LIBS) $(PROJECT_CPLUS_LIBS) $(STD_CPLUS_LIBS)
  263. ALLCPLUSLIBDIRS       = $(LOCAL_CPLUS_LIBDIRS) $(PROJECT_CPLUS_LIBDIRS) $(STD_CPLUS_LIBDIRS)
  264.  
  265. CFLAGS                = DefaultCFlags $(ALLCDEFS)
  266. CFLAGS_DEBUG          = CFlagsDebug $(ALLCDEFS)
  267. C_OPTIMIZE            = COptimizeFlag
  268. C_LDFLAGS             = CLinkerOptions
  269. MISC_CFLAGS           = MiscCFlags
  270.  
  271. CPLUSFLAGS            = DefaultCPlusFlags $(ALLCPLUSDEFS)
  272. CPLUSFLAGS_DEBUG      = CPlusFlagsDebug $(ALLCPLUSDEFS)
  273. CPLUS_OPTIMIZE        = CPlusOptimizeFlag
  274. CPLUS_LDFLAGS         = CPlusLinkerOptions
  275.  
  276.